package com.example.hehecat.yuejian1.mvp.contract;

import com.example.hehecat.yuejian1.mvp.model.bean.ActivityBean;
import com.example.hehecat.yuejian1.mvp.model.bean.MasterBean;
import com.example.hehecat.yuejian1.mvp.model.bean.MasterLessonBean;
import com.example.hehecat.yuejian1.mvp.model.bean.SuccessBean;

import java.util.List;

import retrofit2.Callback;
import rx.Subscriber;

public interface MasterInfoContract {
    interface Model{
        void getMaster(int master_id, Subscriber<MasterBean> subscriber);
        void getLesson(int master_id, Subscriber<List<MasterLessonBean>> subscriber);
        void collectMaster(int master_id, int user_id, Callback<SuccessBean> callback);
        void isMasterCollect(int master_id, int user_id,Callback<SuccessBean> callback);
    }

    interface View {
        void showMsg(String msg);
        void setCollect();
        void setUnCollect();
        void updateAdapterData(List<MasterLessonBean> data);
        void collectMaster();
        void isMasterCollect();


    }

    interface Presenter {
        void collectMaster(int user_id,int master_id);
        void isCollected(int master_id, int user_id);
        void updateAdapterData(int master_id);
    }
}
